﻿
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Oliving.Edge.Model.Models.User
{
    ///<summary>
    ///
    ///</summary> 

    [SugarTable("Sys_Dept")]
    [Serializable]
    public class Sys_Dept : BaseEntity
    {
        public Sys_Dept()
        {
        }

        /// <summary> 
        /// Desc:主键ID 
        /// Default: 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(IsPrimaryKey = true, ColumnName = "Id", ColumnDescription = "主键ID", Length = 50, ColumnDataType = "nvarchar")]
        public string Id { get; set; } = Guid.NewGuid().ToString();

        /// <summary> 
        /// Desc:父节点 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "Pid", ColumnDescription = "父节点", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string Pid { get; set; }

        /// <summary> 
        /// Desc:部门名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "DeptName", ColumnDescription = "部门名称", IsNullable = true, Length = 4000, ColumnDataType = "nvarchar")]
        public string DeptName { get; set; }

        /// <summary> 
        /// Desc:项目 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ProID", ColumnDescription = "项目", IsNullable = true, Length = 4000, ColumnDataType = "nvarchar")]
        public string ProID { get; set; }

        /// <summary> 
        /// Desc:公司 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ComID", ColumnDescription = "公司", IsNullable = true, Length = 4000, ColumnDataType = "nvarchar")]
        public string ComID { get; set; }

        ///// <summary> 
        ///// Desc:创建名称 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建名称", IsNullable = true)]
        //public DateTime? CreateTime { get; set; }

        ///// <summary> 
        ///// Desc: 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "CreateUserID", IsNullable = true, Length = 4000, ColumnDataType = "nvarchar")]
        //public string CreateUserID { get; set; }

        ///// <summary> 
        ///// Desc: 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "CreateUserName", IsNullable = true, Length = 4000, ColumnDataType = "nvarchar")]
        //public string CreateUserName { get; set; }

        /// <summary> 
        /// Desc: 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "DeleteMark", IsNullable = true)]
        //public int? DeleteMark { get; set; }

        ///// <summary> 
        ///// Desc: 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "SortCode", IsNullable = true)]
        //public int? SortCode { get; set; }

        ///// <summary> 
        ///// Desc: 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "Enabled", IsNullable = true)]
        //public int? Enabled { get; set; }

        ///// <summary> 
        ///// Desc: 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "ModifyDate", IsNullable = true)]
        //public DateTime? ModifyDate { get; set; }

        ///// <summary> 
        ///// Desc: 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "ModifyUserId", IsNullable = true, Length = 4000, ColumnDataType = "nvarchar")]
        //public string ModifyUserId { get; set; }

        ///// <summary> 
        ///// Desc: 
        ///// Default: 
        ///// Nullable:True 
        ///// </summary> 

        //[SugarColumn(ColumnName = "ModifyUserName", IsNullable = true, Length = 4000, ColumnDataType = "nvarchar")]
        //public string ModifyUserName { get; set; }

    }

}
